﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class Person
    {
        private int id;
        private string name;
        private string sex;
        private string cardid;
        private string tel;

       
       

        public Person(int id, string name, string sex, string cardid, string tel)
        
        {

            this.id = id;
            this.name = name;
            this.sex = sex;
            this.cardid = cardid;
            this.tel = tel;

        }
        public void Test1() 
        
        {

            Console.WriteLine("我的编号为{0}，我的名字为{1}，我的性别为{2}，我的身份证号为{3}，我的联系方式为{4}",this.id,this.name,this.sex,this.cardid,this.tel);
        
        }
        public int Id {
            get { return this.id; }
            set { this.id = value; }
        
        }
        public string Name {
            get {return this.name; }
            set { this.name = value; }
        }
        public string Sex
        {
            get { return this.sex; }
            set { this.sex = value; }

        }
        public string Cardid
        {
            get { return this.cardid; }
            set { this.cardid = value; }
        }
        public string Tel
        {
            get { return this.tel; }
            set { this.tel = value; }

        }
     

    }
}
